package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.WeixiuKJ;

public interface WeixiuKJRepository extends JpaRepository<WeixiuKJ, Long> {

    WeixiuKJ findByTaskId(String taskId);

    WeixiuKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<WeixiuKJ> findByWorkOrderNum(String workOrderNum);

    List<WeixiuKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
